package com.pj.service;

import com.pj.entity.CrawRuleBean;
import com.pj.entity.CrawlSource;

public interface CrawlService {

    void openOrCloseCrawl(Integer sourceId, Byte sourceStatus);

    /**
     *author: szy
     *更新爬虫状态
     */
    void updateCrawlSourceStatus(Integer sourceId, Byte sourceStatus);


//    void parseBookList(int catId, CrawRuleBean ruleBean, Integer sourceId);
//
//    boolean parseBookAndSave(int catId, CrawRuleBean ruleBean, Integer sourceId, String bookId);

    boolean startCloseCrawl(Integer sourceId);

    boolean openCloseCrawl(Integer sourceId);


}
